home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
snpd9611.zip
/
STYLE.C
< prev
next >
Wrap
Text File
|
1996-11-24
|
1KB
|
24 lines
.I 0 2
/* +++Date last modified: 04-Aug-1996 */
.I 18 10
/* First of all, block comments (like this one) are preferable to */
/* trailing (in-line) comments as in the following examples. */
int local1, local2; /* local variable declarations are
always followed by a blank line */
do_stuff();
if (bar(local1))
{ /* long comments here *//* this lines up with -----------+ */
char *local3; /* autos declared close to use | */
.D 19 7
.I 26 6
do_more_stuff(); /* (everything else indented) | */
local2 = strlen(local3); /* | */
} /* this <------------------------+ */
else local2 = fubar(); /* using tab >= 6, else's line up */
return local2;
} /* no question where functions end!*/
.D 27 6